# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgbase=python-libscca-python
pkgname=('python2-libscca-python' 'python-libscca-python')
_pkgname=libscca-python
pkgver=20240427
pkgrel=2
pkgdesc='Library and tools to access the Windows Prefetch File (SCCA) format.'
arch=('x86_64' 'aarch64')
url='https://pypi.org/project/libscca-python/#files'
license=('LGPLv3+')
makedepends=('python2-setuptools' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('c5a1046772bf5f7bf95748bea23a3b2442891edea5bce5d9eb93a0217630455bd9ff1a78aa2fb078b9cb3b5611218e4389005d6840ccd745e4faa1b1a0df772b')

package_python2-libscca-python() {
  depends=('python2' 'python2-pyaml')

  cd "libscca-$pkgver"

  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}

package_python-libscca-python() {
  depends=('python' 'python-pyaml')

  cd "libscca-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}

